
package com.sicc.prototype.dao;

import java.util.List;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;


import com.sicc.prototype.dto.ProtoTypeDto;


/**
 * 샘플 DAO.
 *
 * @author user_name
 */
@Repository("protoTypeDao")
public class ProtoTypeDaoImpl extends SqlSessionDaoSupport  implements ProtoTypeDao{
	
	/**
	 * 상세조회.
	 *
	 * @param protoTypeDto the proto type dto
	 * @return the proto type dto
	 */
	@Override
	public ProtoTypeDto selectOne(ProtoTypeDto protoTypeDto) {
		return getSqlSession().selectOne("protoType.selectOne", protoTypeDto);
	}
	
	/**
	 * 목록 조회.
	 *
	 * @return the list
	 */
	@Override
	public List<ProtoTypeDto> selectList() {
		return getSqlSession().selectList("protoType.selectList", "");
	}
		
}
